body , html {
    font-size: 12px;
}
nav{
    height: 74px;
    position: relative;
    .h-nav-right{
        .search2{
            position: absolute;
            top: 0;
            right: 230px;
            img{
                top: 3px;
                left: 190px;
                width: 16px;
                height: 16px;
                position: absolute;
                cursor: pointer;
                z-index: 4;
            }
            input{
                position: absolute;
                top: -5px;
                width: 200px;
                height: 26px;
                padding-left: 20px;
                border-radius: 70px;
                border: 1px solid #ddd;
                background-color: #eee;
                outline: none;
            }
        }
    }
}


.href{
    font-size: 13px;
    color: gray;
    height: 17px;
}

$width:450px;
main{
    // position: relative;
    .main-left{
        float: left;
        width: 40%;
        height: 550px;
        margin-right: 15px;
        .mid{
            position: relative;
            img{
                width: $width;
            }
            .focus{
                width: 225px;
                height: 225px; 
                position: absolute;
                top: 0;
                left: 0;
                z-index: 13;
                background-color: #ccc;
                opacity: 0.2;
                border: 1px solid gray;
                display: none;
            }
            .big{
                position: absolute;
                top: 0;
                left: 490px;
                z-index: 20;
                display: none;
                opacity: 0;
                img{
                    position: absolute;
                    width: 800px;
                    height: 800px;
                    margin-right: 0;
                }
            }
            .big-focus{
                border: 1px solid gray;
                overflow: hidden;
            }

        }
        // swiper
        .active{
            border: 1px solid #ca141d;
        }
        .res{
            position: relative;
            width: 346px;
            margin: 0 auto;
            img{
                width: 65px;
                cursor: pointer;
            }
        }
        .myWidth{
            width: 52px !important;
            /* transform: translate3d(-173.333px, 0px, 0px); transition-duration: 0ms; */
        }
        .swiper-container{
            /* width: 500px; */
        }
        .swiper-button-prev , .swiper-button-next{
            background-color: white;
            position: absolute;
            top: 20px;
            left: -45px;
            width: 30px;
            height: 30px;
            box-sizing: border-box;
            border: 1px solid gray;
            z-index: 5;
            border-radius: 36px;
            --swiper-theme-color: #bbb;/* 设置Swiper风格 */
            --swiper-navigation-color:  #bbb;/* 单独设置按钮颜色 */
            --swiper-navigation-size: 13px;/* 设置按钮大小 */
        }
        .swiper-button-next{
            position: absolute;
            top: 20px;
            left: 360px;
        }
        
    }
    // 弹窗
    .gocart{
        position: absolute;
        top: 30%;
        left: calc(50% - 220px);
        width: 450px;
        height: 170px;
        z-index: 20;
        box-sizing: border-box;
        background-color: rgb(250, 250, 250);
        padding: 20px 30px;
        box-shadow: 0 0 5px #ccc;
        display: none;
        opacity: 0;
        .gocartup{
            width: 380px;
            line-height: 35px;
            font-size: 18px;
            text-align: center;
        }
        .gocartdown{
            position: absolute;
            bottom: 20px;
            display: flex;
            justify-content: space-between;
            text-align: center;
            .gocartleft{
                box-sizing: border-box;
                width: 180px;
                height: 50px;
                font-size: 20px;
                cursor: pointer;
                padding-top: 10px;
                border: 1px solid gray;
                margin-right: 20px;
            }
            a{
                border: 1px solid #ddd;
                width: 180px;
                height: 50px;
                box-sizing: border-box;
                padding-top: 10px;
                color: white;
                background-color: #ca141d;
                font-size: 20px;
            }
        }
    }
    .main-right{
        // background-color: blue;
        float: left;
        width: 58%;
        h3{
            font-weight: 400;
            font-size: 20px;
        }
        p{
            font-size: 12px;
            color: #ca141d;
            cursor: pointer;
            text-decoration: underline;
        }
        .gray{
            background-color: #eee;
            padding: 3px 5px;
            height: 145px;
            font-size: 12px;
            .price-right{
                font-size: 26px;
                color: #ca141d;
                line-height: 50px;
                height: 50px;
            }
            .price-left{
                line-height: 50px;
                height: 50px;
            }
        }
        .left-margin{
            float: left;
            line-height: 30px;
            height: 30px;
            width: 10%;
        }
        .right{
            float: left;
            width: 88%;
            line-height: 30px;
            height: 30px;
            .word{
                width: 100%;
                white-space: nowrap;
                overflow:hidden;
                text-overflow:ellipsis;
            }
            div{
                float: none;

                span{
                    float: none;
                    text-align: center;
                    line-height: 20px;
                    margin-right: 10px;
                    padding: 3px 5px;
                    color: #ca141d;
                    border: 1px solid #ca141d;
    
                }
            }
            .box{
                img{
                    padding-top: 5px;
                    width: 25px;
                    height: 25px;
                    padding-right: 5px;
                }
                float: left;
                cursor: pointer;
                padding: 2px 10px;
                display: flex;
                justify-content: center;
                border : 1px solid #aaaaaa;
                margin-right: 5px;
                &:hover{
                    border: 1px solid black;
                }
            }
            .recommend-box-heigh{
                height: 60px;
            }
            
        }
        .recommend{
            height: 70px;
            .right{
                .box{
                    width: 120px;
                    img{
                        width: 48px;
                        height: 48px;
                    }
                }
            }
        }
        .box-red{
            border-color: #ca141d !important;
        }
        .red{
            color: #ca141d;
        }
        .btns{
            height: 50px;
            input{
                width: 50px;
                height: 50px;
                font-size: 16px;
                box-sizing: border-box;
                border: 1px solid gray;
                text-align: center;
                float: left;
            }
            dl{
                position: relative;
                top: -12px;
                width: 25px;
                float: left;
                text-align: center;
                dd{
                    box-sizing: border-box;
                    border: 1px solid gray;
                    border-left: none;
                    width: 25px;
                    height: 25px;
                    margin: 0;
                    cursor: pointer;
                }
            }
            .cart , .buy{
                width: 150px;
                height: 50px;
                border: none;
                color: white;
                font-size: 16px;
                margin-left: 10px;
                cursor: pointer;
            }
            .cart{
                background-color: #fc600c;
            }
            .buy{
                background-color: #ca141d
                ;
            }
        }
        .server , .code , .color , .edition , .plan , .free{
            margin: 15px 0;
        }
        #server-select{
            width: 100px;
            height: 30px;
            border: 1px solid #ddd;
        }

    }
}
.tr{
    word-break: break-word;
    overflow: hidden;
    // width: 100%;
    // white-space: nowrap;
    text-overflow:ellipsis;
}
.flex{
    display: flex;
    justify-content: space-between;
}

section{
    img{
        width: 100%;
    }
}